package com.syn.synold4s.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

import com.gaoyi.basemodule.baseUtil.SPUtil;
import com.gaoyi.basemodule.baseconstant.SPName;
import com.syn.synold4s.activity.MainActivity;

public class NotificationReceiver extends BroadcastReceiver {

    public static final String NOTIFY_ACTION = "com.syn.synold4s.receiver.NotificationReceiver";

    @Override
    public void onReceive(Context context, Intent intent) {
            Intent intentGo = new Intent(context, MainActivity.class);
            intentGo.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(intentGo);
    }
}
